package com.gph.saviorframework.mybatis;

/**
 * Created by root on 16-7-2.
 */
public class ShardParam {

    public static final ShardParam NO_SHARD = new ShardParam();

    private String name;
    private Object shardValue;
    private Object params;

    public ShardParam() {
    }

    public ShardParam(String name, Object shardValue, Object params) {
        super();
        this.name = name;
        this.shardValue = shardValue;
        this.params = params;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Object getShardValue() {
        return shardValue;
    }

    public void setShardValue(Object shardValue) {
        this.shardValue = shardValue;
    }

    public Object getParams() {
        return params;
    }

    public void setParams(Object params) {
        this.params = params;
    }

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("ShardParam [name=");
        builder.append(name);
        builder.append(", shardValue=");
        builder.append(shardValue);
        builder.append(", params=");
        builder.append(params);
        builder.append("]");
        return builder.toString();
    }
}
